package com.freework.report.base.service.reportLoad;
import org.springframework.context.ApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
public class SpringBean {

	private ApplicationContext applicationContext = null;

	public SpringBean(javax.servlet.ServletContext servletContext) {
		super();
		ApplicationContext applicationContext =(ApplicationContext) 
		WebApplicationContextUtils.getWebApplicationContext(servletContext);
		this.applicationContext = applicationContext;
	}

	public Object getBean(String beanid) {

		return applicationContext.getBean(beanid);
	}
}
